﻿package daphne.noterun.objects {	import daphne.noterun.menus.Room;	import flash.display.MovieClip;		/**	 * ...	 * @author ...	 */	public class GameObject extends MovieClip 	{		protected var room:Room;				public function GameObject(room:Room) 		{			super();			this.room = room;		}				public function inYBounds(other:GameObject):Boolean 		{			return this.bottom() > other.top() && this.top() < other.bottom();		}    		public function inXBounds(other:GameObject):Boolean		{			return this.right() > other.left() && this.left() < other.right();		}			public function update():void		{		}				public function top():Number		{			return this.y;		}				public function bottom():Number		{			return this.y + this.height;		}				public function left():Number {			return this.x;		}				public function right():Number {			return this.x + this.width;		}	}}